package com.chefu.common.net.file.upload;

import java.io.File;

/**
 * Created by ${wangshuyun} on 2016/11/14 0014.
 *
 * <p>
 * 上传文件 实体类
 */
public class FileInputEntity {


    //字段名
    private String key;
    //文件名
    private String filename;
    //文件地址
    private File file;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }

    public FileInputEntity() {
    }

    public FileInputEntity(String key, String filename, File file) {
        this.key = key;
        this.filename = filename;
        this.file = file;
    }

    @Override
    public String toString() {
        return "FileInputEntity{" +
                "key='" + key + '\'' +
                ", filename='" + filename + '\'' +
                ", file=" + file +
                '}';
    }
}
